package org.aner.tester;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.project.MavenProject;

/**
 * Goal which generate controller test code and data.
 *
 *
 * @goal generate
 *
 * @requiresDependencyResolution compile
 *
 * @phase compile
 *
 * @author aner
 */
public class AnerTesterMojo extends AbstractMojo
{

    /**
     * @parameter expression="${project}"
     * @required
     */
    private MavenProject project;

    /**
     * @parameter property="configurationFile" default-value="aner-tester/anertester-config.yml"
     */
    private String configurationFile;

    /**
     * @parameter default-value="${basedir}/"
     */
    private String testFileDir;

    /**
     * @parameter default-value="${basedir}/src/main/resources/"
     */
    private String resourcePah;





    @Override
    public void execute() {
         new AnerTester.Builder().project(project)
                 .configPath(configurationFile)
                 .testFileDir(testFileDir)
                 .resourcePath(resourcePah)
                 .build()
                 .start();
    }
}
